package dormouse.bookmarks;

import java.io.IOException;

/**
 * This interface is responsible for persisting a bookmark into a file, or into a 3rd
 * party service like del.icio.us.
 * 
 * @author mfortner
 */
public interface IBookmarkWriter {
    
    /**
     * This method is responsible for writing the bookmark out to a file, or persisting
     * it into a remote bookmarking service like del.icio.us.
     * @param outputURL The URL for the file or bookmarking service.
     * @param bookmark  The Bookmark that the user wants to save.
     * @throws IOException  If there is a problem writing the bookmark.
     */
    public void writeBookMark(String outputURL, Bookmark bookmark) throws IOException;
    

}
